package com.tangruitao.service.impl;

import com.tangruitao.bean.*;
import com.tangruitao.dao.GoodsDao;
import com.tangruitao.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 这个类的作者是13536
 * 开发日期:2021/12/20
 **/
@Service
public class GoodsServiceImpl implements GoodsService {
    @Autowired
    GoodsDao goodsDao;
    @Override
    public Users login(String name) {
        return goodsDao.login(name);
    }

    @Override
    public List<Goods> listgoods(QureyOv qureyOv) {
        return goodsDao.listgoods(qureyOv);
    }

    @Override
    public List<Type> typelist() {
        return goodsDao.typelist();
    }

    @Override
    public List<Brand> brandlist() {
        return goodsDao.brandlist();
    }

    @Override
    public Integer insertgood(Goods goods) {
        return goodsDao.insertgood(goods);
    }
}
